const mongoose=require("mongoose")
const Schema=mongoose.Schema;
const comentschema=new Schema({
    articel:{
        type:Schema.Types.ObjectId,
        ref:"article"
    },
    user:{
        type:Schema.Types.ObjectId,
        ref:"user"
    },
    date:{
        type:Date,
        default: Date.now()
    },
    content:String,
})
const comment=mongoose.model("comment",comentschema);
module.exports=comment;